<div ms-controller="tracking_flow">
	<div class="location_box">
		<div class="return_title">
			<a class="return_button" ms-on-click="history"><img src="../img/icon_return.png"/></a>
            <a ms-on-click="load('home_cloud.html')">首页</a>
			<span>&gt;</span>
			<span>走件流程</span>
		</div>
	</div>
	<div class="table_content">
		<div class="clear">
			<div class="baseInfoBox">
				<ul>
					<!--<li><label>运单号：</label><input type="text" placeholder="请扫描运单号"/></li>-->
					<!--<li><label>快递公司：</label>天天快递成高子站</li>-->
					<!--<li><label>运单类型：</label>普通单<span>改为代收单</span></li>-->
					<!--<li><label>最新状态：</label>派送中</li>-->
					<!--<li><label>派送人员：</label>刘可</li>-->
					<!--<li><label>代收金额：</label>￥12</li>-->
					<li><label>运单号：</label><input type="text" placeholder="请扫描运单号" ms-duplex="trackingNumber" id="trackingNumber" ms-on-keydown="getInfo"/></li>
					<li><label>快递公司：</label>{{srcCompanyPointName}}</li>
					<li><label>云仓：</label>{{cloudPointName}}</li>
					<li><label>运单类型：</label>
						<div style="display:inline" ms-if="isCollect==0">普通单<span ms-if="sessionStorage.userPower_modify_collect_type==1" ms-on-click="modifyCollectType(0)">改为代收单</span></div>
						<div style="display:inline" ms-if="isCollect==1">代收单<span ms-if="sessionStorage.userPower_modify_collect_type==1" ms-on-click="modifyCollectType(1)">改为普通单</span></div>
					</li>
					<li><label>最新状态：</label>
						<div style="display: inline" ms-if="status==0">已入仓</div>
						<div style="display: inline" ms-if="status==1">派件中</div>
						<div style="display: inline" ms-if="status==2">已签收</div>
						<div style="display: inline" ms-if="status==3">已返仓</div>
						<div style="display: inline" ms-if="status==4">已退件</div>
						<div style="display: inline" ms-if="status==5">再次派件</div>
					</li>
				<!--	<li style="height: 105px"><label style="height: 105px">派送人员：</label><span>{{senderCompanyPointName}} {{senderCode}} {{senderName}}</span></li>-->
					<li style="height: auto;overflow: hidden"><div class="sendPersonLeft">派送人员：</div><div class="sendPersonRight"><div>{{senderCompanyPointName}}</div><div>{{senderCode}}</div><div>{{senderName}}</div></div></li>
					<li ms-if="isCollect==1"><label>代收金额：</label>{{collectMoney|myCurrency}}</li>
				</ul>
			</div>
			<div class="flowInfoBox">
				<div class="tabs">
					<div id="flowInfoTab" class="tabItem onChoice" ms-on-click="changeTab(1)">物流详情<div></div></div>
					<div id="modifyLogTab" class="tabItem"  ms-on-click="changeTab(2)">修改日志<div></div></div>
				</div>
				<div class="detailInfo">
					<div class="flowInfo" id="flowInfo">
						<ul>
							<li ms-repeat="trackingLogList">
								<lable ms-if="el.status==2" class="flowEnd"><span><div></div></span>{{el.createTime| date("yyyy-MM-dd HH:mm")}} 【已签收】操作员：{{el.creatorName}}<div class="topWhiteBorder"></div></lable>
								<lable ms-if="el.status==5" class="choice"><span><div></div></span>{{el.createTime| date("yyyy-MM-dd HH:mm")}}  【再次派件】派送人员：{{el.senderCompanyPointName}} {{el.senderName}}--| 操作员：{{el.creatorName}}</lable>
								<lable ms-if="el.status==4" class="flowEnd"><span><div></div></span>{{el.createTime| date("yyyy-MM-dd HH:mm")}}  【已退件】退件原因：{{el.problemOut}}--| 操作员：{{el.creatorName}}</lable>
								<lable ms-if="el.status==3" class="choice"><span><div></div></span>{{el.createTime| date("yyyy-MM-dd HH:mm")}}  【已返仓】返仓原因：{{el.problem}}--| 操作员：{{el.creatorName}}</lable>
								<lable ms-if="el.status==1" class="choice"><span><div></div></span>{{el.createTime| date("yyyy-MM-dd HH:mm")}}  【派送中】派送人员：{{el.senderCompanyPointName}} {{el.senderName}}--| 操作员：{{el.creatorName}}</lable>
								<lable ms-if="el.status==0" class="choice"><span><div></div></span>{{el.createTime| date("yyyy-MM-dd HH:mm")}}  【已入库】司机：{{driverName}} --| {{srcCompanyPointName}} 发往 {{cloudPointName}} --| 操作员：{{el.creatorName}}<div class="bottomWhiteBorder"></div></lable>
							</li>
							<!--<li><span><div></div></span>2017-03-21   12:32  【快件已经到达西乡】<div class="bottomWhiteBorder"></div></li>-->
						</ul>
					</div>

					<div class="modifyLog" style="display: none;" id="modifyLog">
						<ul>
							<li ms-repeat="trackingModifyLogList">{{el.createTime| date("yyyy-MM-dd HH:mm")}}
								    操作人：{{el.creatorName}}
								<span ms-if="el.type==0"> --| 将普通单更改为【代收单】</span>
								<span ms-if="el.type==1"> --| 将代收单更改为【普通单】</span>
							</li>
						</ul>
					</div>
				</div>

			</div>
		</div>
	</div>
	<script>
        $(function(){
            $("#trackingNumber").focus();
        });
	</script>
</div>